export default defineEventHandler(async (event) => {
    const baseUrl = useRuntimeConfig().public.serviceUrl;
    // console.log(res.data)
    const query = getQuery(event) as {blogType:number,page: number,size: number};
    const queryParam =jsonToUrlParam(query)
    return await fetch(baseUrl + '/blogs/getBlogs?'+queryParam, {
        method: 'GET',
    }).then((res) => res.json());
})